<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class CourseArrangeModel extends Model
{
    protected $table = 'course_arrange';
    protected $guarded = [];
    public $timestamps = true;

    public function student() {
        return $this->hasMany(CourseStudentModel::class, 'course_arrange_id', 'id');
    }

    public function course() {
        return $this->belongsTo(CourseModel::class, 'course_id', 'id');
    }
}